package com.frejoys.common.vo.agent;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/4/24 16:25
 */
@Data
public class AgentRoleVo {

    @Schema(type = "Integer", name = "id", description = "主键id")
    private Integer id;

    //角色名称
    @Schema(type = "String", name = "name", description = "角色名称")
    private String name;

    //父id
    @Schema(type = "Integer", name = "pid", description = "父id")
    private Integer pid;

    //层级关系
    @Schema(type = "Integer", name = "path", description = "层级关系")
    private String path;

    //返利比例
    @Schema(type = "Integer", name = "rebateRatio", description = "返利比例")
    private Integer rebateRatio;

    // 创建时间（Unix 时间戳）
    @Schema(type = "Integer", name = "createTime", description = "创建时间")
    private Integer createTime;

    //下级
    @Schema(type = "List<AgentRoleVo>", name = "roleVos", description = "下级")
    private List<AgentRoleVo> roleVos;
}
